<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>个人注册</title>
    <!-- 引入favicon图标 -->
    <link rel="shortcut icon" href="/static/favicon.ico" />
    <!-- 引入我们初始化的css -->
    <link rel="stylesheet" href="/static/css/base.css">
    <!-- 引入我们自己的注册页面的css -->
    <link rel="stylesheet" href="/static/css/register.css">
    <link rel="stylesheet" href="/static/layui/css/layui.css">
    <script src="/static/js/axios.min.js"></script>
    <script src="/static/js/vue.js"></script>
    <script src="/static/layui/layui.js" charset="utf-8"></script>
</head>

<body>
    <div class="w">
        <header>
            <div class="logo">
                <a href="/static/index.html"> <img src="/static/images/logo.png" alt=""></a>
            </div>
        </header>
        <div class="registerarea">
            <h3>注册新用户
                <div class="login">我有账号，去<a href="/static/login.html">登陆</a></div>
            </h3>
            <div class="reg_form">
                <ul>
                    <li><label for="email">邮箱：</label> <input id="email" v-model="email" @input="emailact" type="text" class="inp" placeholder="填写正确的邮箱">
                        <span class="error" v-show="!email_check && email_tipon"> <i class="error_icon"></i> 邮箱格式不正确，请从新输入 </span>
                        <span class="success" v-show="email_check && email_tipon"> <i class="success_icon"></i> 邮箱格式正确 </span></li>
                    <li><label for="name">昵称：</label> <input id="name" v-model="name" type="text" class="inp" @input="nameact" placeholder="2--18位数字,汉字,字母,下划线">
                        <span class="error" v-show="!name_check && name_tipon"> <i class="error_icon"></i> 昵称格式不正确，请从新输入 </span>
                        <span class="success" v-show="name_check && name_tipon"> <i class="success_icon"></i> 昵称格式正确 </span></li>
                    <li><label for="qq">QQ：</label> <input id="qq" v-model="qq" type="text" class="inp" @input="qqact">
                        <span class="error" v-show="!qq_check && qq_tipon"> <i class="error_icon"></i> QQ号码格式不正确，请从新输入 </span>
                        <span class="success" v-show="qq_check && qq_tipon"> <i class="success_icon"></i> QQ号码格式正确 </span></li>
                    <li><label for="phone">手机号：</label> <input id="phone" v-model="phone" type="text" class="inp" @input="phoneact">
                        <span class="error" v-show="!phone_check && phone_tipon"> <i class="error_icon"></i> 手机号码格式不正确，请从新输入 </span>
                        <span class="success" v-show="phone_check && phone_tipon"> <i class="success_icon"></i> 手机号码格式正确 </span></li>
                    <span class="error" v-show="phone_used"> <i class="error_icon"></i> 该手机号已经被注册！ </span>
                    <li><label for="password">登录密码：</label> <input id="password" v-model="password" type="password" class="inp" @input="passwordact" placeholder="6--20位数字,字母,任意字符">
                        <span class="error" v-show="!password_check && password_tipon"> <i class="error_icon"></i> 密码不符合要求，请从新输入 </span>
                        <span class="success" v-show="password_check && password_tipon"> <i class="success_icon"></i> 密码格式正确 </span></li>
                    <li class="safe" v-html="safe_degree">安全程度 <em class="ruo">弱</em> <em class="zhong">中</em> <em class="qiang">强</em> </li>
                    <li><label for="verpassword">确认密码：</label> <input id="verpassword" v-model="verpassword" type="password" class="inp" @input="verpasswordact">
                        <span class="error" v-show="!verpassword_check && verpassword_tipon"> <i class="error_icon"></i> 密码不一致，请从新输入 </span>
                        <span class="success" v-show="verpassword_check && verpassword_tipon"> <i class="success_icon"></i> 密码一致 </span></li>
                    <li class="agree"><input type="checkbox" v-model="agree"> 同意协议并注册 <a href="#">《知晓用户协议》</a>

                    </li>
                    <li>
                        <input type="submit" value="完成注册" class="btn" @click="submit">
                    </li>
                </ul>
            </div>
        </div>

    </div>
    <script src="/static/js/registervue.js"></script>
</body>

</html>